using ArmyAnt.IO;
using PlayMyLife.Events;
using PlayMyLife.ViewModel;
using TMPro;

using UnityEngine;

namespace PlayMyLife.View.Prefabs.Items {
    public class PersonItem : MonoBehaviour {
        public TextMeshProUGUI textName;
        [InspectorReadOnly] public long roleId;

        public void OnClick() {
            if(GameViewManager.EnableOperate) {
                GameViewManager.EventMgr.NotifyAsync(new EventArgs_PlaceOperate(roleId));
            }
        }
    }
}